package com.authine.cloudpivot.ext.dto.transfer;

import com.authine.cloudpivot.ext.enums.order.transfer.InvoiceApplyTypeEnum;
import com.authine.cloudpivot.ext.enums.order.transfer.PurchaseInvoiceEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 采购收票表
 */
@Data
@Schema(description = "PurchaseInvoiceDto")
@ApiModel("采购收票表")
public class PurchaseInvoiceDto {
    @Schema(description = "采购收票ID")
    private String id;
    @Schema(description = "采购收票ID集合")
    private List<String> ids;
    @Schema(description = "采购单ID,多个值用英文逗号隔开")
    private String purchase_order_id;//采购单id
    @Schema(description = "采购付款ID,多个值用英文逗号隔开")
    private String po_code;
    @Schema(description = "发票抬头")
    private String title;
    @Schema(description = "发票税率")
    private BigDecimal invoice_rate;
    @Schema(description = "采购收票状态")
//    private PurchaseInvoiceEnum invoice_status;
    private String purchase_invoice_status;
    @Schema(description = "采购收票总金额")
    private BigDecimal invoice_amount;
    @Schema(description = "采购收票总金额(未)")
    private BigDecimal pre_invoice_amount;
    @Schema(description = "采购总金额")
    private BigDecimal purchase_amount;
    @Schema(description = "采购总金额（未）")
    private BigDecimal pre_purchase_amount;
    @Schema(description = "发票种类")
//    private InvoiceApplyTypeEnum invoice_type;
    private String invoice_type;
    @Schema(description = "平台名称")
    private String platform_name;
    @Schema(description = "转采管理-采购收票-取消收票:1;转采管理-采购收票-提交财务:4;")
    private String type;
    @Schema(description = "采购收票明细表集合")
    private List<PurchaseInvoiceDetailDto> purchaseInvoiceDetails;
    @Schema(description = "采购收票简单信息集合")
    private List<PurchasePaymentInvoiceDto> purchasePaymentInvoices;
}
